package com.csi.okr.mobile.common.entity;

import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 与KR（关键结果）表（T_OKR_KEYRESULTS）对应的实体类
 * 
 */
@Entity
@Table(name = "T_OKR_KEYRESULTS", schema = "PSGIS")
public class TOkrKeyresults implements java.io.Serializable {

	private static final long serialVersionUID = 1L;
	/**
	 * kr唯一标识码
	 */
	private String krUniqueIdCode;
	/**
	 * O唯一标识码
	 */
	private String OUniqueIdCode;
	/**
	 * kr码
	 */
	private String krCode;
	/**
	 * kr定义
	 */
	private String krDefinition;
	/**
	 * 行动计划
	 */
	private String actionPlan;
	/**
	 * 版本标识
	 */
	private Serializable versionTag;
	/**
	 * 版本号
	 */
	private String versionCode;

	public TOkrKeyresults() {
	}

	public TOkrKeyresults(String krUniqueIdCode) {
		this.krUniqueIdCode = krUniqueIdCode;
	}

	public TOkrKeyresults(String krUniqueIdCode, String OUniqueIdCode, String krCode, String krDefinition,
			String actionPlan, Serializable versionTag, String versionCode) {
		this.krUniqueIdCode = krUniqueIdCode;
		this.OUniqueIdCode = OUniqueIdCode;
		this.krCode = krCode;
		this.krDefinition = krDefinition;
		this.actionPlan = actionPlan;
		this.versionTag = versionTag;
		this.versionCode = versionCode;
	}

	@Id

	@Column(name = "KR_UNIQUE_ID_CODE", unique = true, nullable = false, length = 20)
	public String getKrUniqueIdCode() {
		return this.krUniqueIdCode;
	}

	public void setKrUniqueIdCode(String krUniqueIdCode) {
		this.krUniqueIdCode = krUniqueIdCode;
	}

	@Column(name = "O_UNIQUE_ID_CODE", length = 20)
	public String getOUniqueIdCode() {
		return this.OUniqueIdCode;
	}

	public void setOUniqueIdCode(String OUniqueIdCode) {
		this.OUniqueIdCode = OUniqueIdCode;
	}

	@Column(name = "KR_CODE", length = 2)
	public String getKrCode() {
		return this.krCode;
	}

	public void setKrCode(String krCode) {
		this.krCode = krCode;
	}

	@Column(name = "KR_DEFINITION", length = 256)
	public String getKrDefinition() {
		return this.krDefinition;
	}

	public void setKrDefinition(String krDefinition) {
		this.krDefinition = krDefinition;
	}

	@Column(name = "ACTION_PLAN", length = 2048)
	public String getActionPlan() {
		return this.actionPlan;
	}

	public void setActionPlan(String actionPlan) {
		this.actionPlan = actionPlan;
	}

	@Column(name = "VERSION_TAG")
	public Serializable getVersionTag() {
		return this.versionTag;
	}

	public void setVersionTag(Serializable versionTag) {
		this.versionTag = versionTag;
	}

	@Column(name = "VERSION_CODE", length = 2)
	public String getVersionCode() {
		return this.versionCode;
	}

	public void setVersionCode(String versionCode) {
		this.versionCode = versionCode;
	}

}
